/*
 * @Description: 身份认证
 * @Author: iamsmiling
 * @Date: 2021-05-28 20:57:33
 * @LastEditTime: 2021-05-29 12:51:31
 */
import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/domain/local/auth/auth_entity.dart';
import 'package:credit_business_circle/routes/app_routes.dart';
import 'package:get/get.dart';

enum AuthStatus { auditing, success, fail }

class AuthController extends GetxController {
  List<AuthEntity> list = [
    AuthEntity(
        label: "实名认证",
        icon: R.image.realNameAuth,
        onTap: () => Get.toNamed(Get.currentRoute + AppRoutes.realNameAuth)),
    AuthEntity(
        onTap: () =>
            Get.toNamed(Get.currentRoute + AppRoutes.professionalCertify),
        label: "职业认证",
        icon: R.image.professionalCertify,
        finished: false),
    AuthEntity(
        label: "实名认证失败",
        icon: R.image.realNameAuth,
        onTap: () => Get.toNamed(
            Get.currentRoute + AppRoutes.realNameAuthStatus,
            arguments: AuthStatus.fail)),
    AuthEntity(
        label: "实名认证成功",
        icon: R.image.realNameAuth,
        onTap: () => Get.toNamed(
            Get.currentRoute + AppRoutes.realNameAuthStatus,
            arguments: AuthStatus.success)),
    AuthEntity(
        label: "实名认证审核中",
        icon: R.image.realNameAuth,
        onTap: () => Get.toNamed(
            Get.currentRoute + AppRoutes.realNameAuthStatus,
            arguments: AuthStatus.auditing)),
    AuthEntity(
        label: "实名认证",
        icon: R.image.realNameAuth,
        onTap: () => Get.toNamed(Get.currentRoute + AppRoutes.realNameAuth)),
    AuthEntity(
        label: "实名认证",
        icon: R.image.realNameAuth,
        onTap: () => Get.toNamed(Get.currentRoute + AppRoutes.realNameAuth)),
  ];
}
